package cn.woochen.mvvmframe.adapter

import cn.woochen.comlib.adapter.BaseSingleItemAdapter
import cn.woochen.mvvmframe.R
import cn.woochen.mvvmframe.bean.ArticleBean
import cn.woochen.mvvmframe.databinding.ItemArticleBinding

class ArticleAdapter: BaseSingleItemAdapter<ArticleBean.Data>(R.layout.item_article) {
    override fun convert(holder: ViewHolder, item: ArticleBean.Data) {
        holder.getDataBinding<ItemArticleBinding?>()?.let {
            it.itemBean = item
        }
    }
}